Skip to content

Show matching tutorial videos in Ask AI answers - #259

Merged
charlypa merged 2 commits into
mainfrom
feat/ask-ai-tutorial-video
Dec 4, 2026
Merged

charlypa merged 2 commits into
mainfrom
feat/ask-ai-tutorial-video

Conversation

@charlypa

@charlypa charlypa commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Reader experience

An Ask AI reply can offer one tutorial video below its written steps. Readers see a still thumbnail, the title and duration. Play opens a captioned player in the answer. Hide video returns to the same spot. A link opens the watch page and its transcript.

How the recording is chosen

The site matches the answer’s citations against the same video definitions that generate watch pages. A direct video citation takes priority, then a matching guide section, edition, or guide with one applicable recording. Ambiguous and unrelated citations leave the answer as text. Authors registering a new recording use the existing video metadata workflow.

DocSearch 5.2.0 renders replies separately in the modal and sidepanel. A small shared React extension in the maintained package exposes the completed answer’s citations to the site in both views. The site owns the optional player, which loads on demand.

Verification

  • Ran the JavaScript search, DocSearch, tutorial, and link-checker regression suites.
  • Built the production site and verified generated links, search metadata, all 20 watch pages, and their captions.
  • Tested an actual assistant response for finding text across project files. Checked the desktop sidepanel and mobile search modal, including keyboard playback, English captions, reduced motion, a blocked video file, and an unavailable optional component.
  • Measured the transcript-link contrast at 6.20:1 on the light desktop view and 5.62:1 on the dark mobile view.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Thank You for making this pull request.

@charlypa
charlypa merged commit d4e37db into main Dec 4, 2026
3 checks passed
@charlypa
charlypa deleted the feat/ask-ai-tutorial-video branch December 4, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant